Shows the standard print dialog, allowing the user to print the current document.
'Declaration
Public Overloads Function PrintDialog( _
ByVal As System.Drawing.Printing.PrinterSettings, _
ByVal () As System.Integer, _
ByVal As System.Boolean _
) As System.Boolean
public System.bool PrintDialog(
System.Drawing.Printing.PrinterSettings ,
System.int[] ,
System.bool
)
Parameters
- printerSettings
- The printer settings to use.
- selectedPageNumbers
- The list of selected page numbers. If this parameter is not null, selection option is enabled in the dialog.
- showProgress
- Indicates whether to show print progress.
Return Value
true if the document was printed, false otherwise.